package com.dd.cloud.gateway.feign;

import com.dd.cloud.common.constants.HealthConstants;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @Description: es服务远程
 * @Author: czg
 * @Date: 2022/12/14 17:41
 * @Version: 1.0.0
 */
@FeignClient("dd-auth-service")
public interface AuthFeignService {
    /**
     * 授权的url
     */
    @GetMapping("/auth/power/check/role/url")
    ResponseEntity<Map<String, String>> checkRoleToUrl(@RequestHeader(HealthConstants.CommonConstants.LOGIN_INFO) String token, @RequestParam("uri") String uri);
}
